<template>
	<view>
		<view class="">
			<view class="detalis" @click="Detalis()">
				<view class="detalis-img">
					<image src="../../../static/logo.png" mode=""></image>
					<view class="name">成都NIC美发沙龙</view>
				</view>
				<view class="ico">
					<image src="../../../static/fan.png" mode=""></image>
				</view>
			</view> 
			<view class="ask">
				<view class="ask-top">
					<image src="../../../static/home/rong.png" mode=""></image>
					<text>烫个发型大概需要多少钱</text>
				</view>
				<view class="data">2019/12/12</view>
			</view>
			<view class="answer">
				<image src="../../../static/home/my_active.png" mode=""></image>
				<text>共6个答案</text>
			</view>
			<view class="answers">
				<view class="answers-img">
					<image src="../../../static/logo.png" mode=""></image>
				</view>
				<view class="answer-right">
					<view class="answer-right-top">
						<view>加菲猫xxxxx <text class="text-name">设计师</text></view>				
						<text>2019/10/10</text>
					</view>
					<view class="answer-bom">
						<view>只烫不染的短发多少钱？头发比较干，不知道能不能做？</view>
						<view>只烫不染的短发多少钱？头发比较干，不知道能不能做？</view>
					</view>
				</view>
			</view>
		</view>
		<view class="tab-bom">
			<view class="tab">
				<input class="input" type="text" value="" placeholder="我可以回答此问题,5-50个字"/>
				<text class="bot">回答</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			Detalis() {
				uni.navigateTo({
					url: '/pages/index/home_design/index'
				})
			}
		}
	}
</script>

<style lang="scss">
	.tab-bom{		
		width: 100%;
		position: fixed;
		bottom: 0;		
		background-color: #F3F3F3;
			
		.tab{			
			padding: 20rpx 20rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
		}
		.input{
			width: 80%;
			height: 60rpx;
			color: #333;
			padding: 15rpx 5rpx;
			font-size: 28rpx;	
			background-color: #fff;
		}
		.bot{
			padding: 15rpx 22rpx;
			display: inline-block;
			background-color: #00c6c2;
			color: #fff;
			font-size: 32rpx;
		}
	}
	.detalis {
		padding: 20rpx;
		border-bottom: 1rpx solid #F3F3F3;
		display: flex;
		align-items: center;
		justify-content: space-between;

		.detalis-img {
			display: flex;
			align-items: center;
			justify-content: center;

			image {
				width: 60rpx;
				height: 60rpx;

			}

			.name {
				font-size: 30rpx;
				color: #333;
				margin-left: 20rpx;
			}
		}

		.ico {
			width: 10%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;

			image {
				width: 10rpx;
				height: 20rpx;
			}
		}
	}

	.ask {
		padding: 20rpx;
		border-bottom: 1rpx solid #F3F3F3;

		.ask-top {
			display: flex;
			align-items: center;
			font-size: 28rpx;
			color: #333;

			image {
				width: 30rpx;
				height: 30rpx;
				margin-right: 20rpx;
			}
		}

		.data {
			padding: 0 0 0 50rpx;
			font-size: 22rpx;
			color: #ccc;
		}
	}

	.answer {
		padding: 20rpx;
		display: flex;
		align-items: center;
		border-bottom: 1rpx solid #F3F3F3;
		
		image{
			width: 30rpx;
			height: 30rpx;
			margin-right: 20rpx;
		}
		text{
			color: #333;
			font-size: 26rpx;
		}
	}
	.answers{
		padding: 20rpx;
		border-bottom: 1rpx solid #F3F3F3;
		display: flex;
		
		.answers-img{
			width: 10%;
			
			image{
				width: 50rpx;
				height: 50rpx;
				border-radius: 50rpx;
			}
		}
		.answer-right{
			margin-left: 10rpx;
			width: 90%;
			
			.answer-right-top{
				color: #ccc;
				display: flex;
				justify-content:space-between;
				align-items: center;
				font-size: 25rpx;
				
				.text-name{
					font-size:16rpx;
					margin-left:8rpx;
					display: inline-block;
					padding: 3rpx 5rpx;
					color: #00c6c2;
					border: 1rpx solid #00c6c2;
				}
				
			}
			.answer-bom{
				font-size: 25rpx;
				color: #333;
				
				view{
					line-height: 50rpx;
				}
			}
		}
	}
</style>
